package zh.codegym.task.task04.task0419;

/* 
四个数字中的最大值
*/

import java.io.*;
import java.util.Arrays;
import java.util.Scanner;

public class Solution {
    public static void main(String[] args) throws Exception {
        //在此编写你的代码
        Scanner scanner = new Scanner(System.in);
        int [] numbers = new int[4];
        for (int i = 0; i < 4; i++) {
            numbers[i] = scanner.nextInt();
        }
        int temp = numbers[0];
        for (int i = 0; i < numbers.length; i++) {
            if(numbers[i] > temp){
                temp = numbers[i];
            }
        }

        System.out.println(temp);
    }
}
